const key = 'likede_UserInfo'
const Key = 'token'
// token
export const getToken = () => {
  return localStorage.getItem(Key)
}
// 存用户token
export const setToken = (data) => {
  localStorage.setItem(Key, JSON.stringify(data))
}
// 移除
export const removeToken = () => {
  localStorage.removeItem(Key)
}

// 取用户userInfo
export const getUserInfo = () => {
  return localStorage.getItem(key)
}

// 取用户userInfo
export const setUserInfo = (data) => {
  localStorage.setItem(key, JSON.stringify(data))
}

// 移除用户取用户userInfo
export const removeUserInfo = () => {
  localStorage.removeItem(key)
}
